<?php
class Wmp_Db_Table_Generic extends Zend_Db_Table
{
	protected $_name = 'test';
	protected $_primary = 'id';
	
	/*protected static $_instances = array();
	public static function getInstance($table) {
		Wmp_Db_Table_Generic::_setTable($table);
		return $this;
	}
	*/
	
	public function setTable($tablename='test',$primarykey='id')
	{
		$this->_setupTableName($tablename);
		$this->_setupPrimaryKey($primarykey);
	}
	
	protected function _setupTableName($tablename='test')
    {
        $this->_name = $tablename;
        parent::_setupTableName();
    }
	
	protected function _setupPrimaryKey($primarykey='id')
    {
        try {
	    	$this->_primary = $primarykey;
	        parent::_setupPrimaryKey();
        }
        catch (EXCEPTION $e) {
        	
        }
    }
    
	/*public function getName();
	public function getPrimary();
	public function getFields();
	public function getFieldInfo();*/
}